<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>流程类型管理</title>
    
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    

	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/workflow/wfType/wfType_list.js"></script>
  </head>
  
  <body>

	<!-- datagrid -->
	<table id="dg" class="easyui-treegrid" title="组织列表" style="width: auto; height: auto;"
    	data-options="url:'wfType/queryList',
    			idField:'id',
    			treeField:'typeName',
    			fit:true,
    			singleSelect:true,
    			rownumbers:true,
    			toolbar:'#tb',
    			animate:true">
 		<thead>
 			<tr>
 				<th data-options="field:'id',hidden:true">类型Id</th>
 				<th data-options="field:'parentId',hidden:true">父级类型ID</th>
    			<th data-options="field:'typeName', width:300">类型名称</th>
    			<th data-options="field:'nodeKey', width:300">类型编码</th>
 			</tr>
 		</thead>
	</table>
	
	<!-- toolbar -->
    <div id="tb" style="padding: 5px; height: auto;">
    	<!-- opreate -->
    	<div style="margin-bottom: 5px; text-align: right;">
    		<a href="javascript:void(0);" id="add" class="easyui-linkbutton" title="添加" iconCls="icon-add" plain="true">添加</a>
    		<a href="javascript:void(0);" id="edit" class="easyui-linkbutton" title="修改" iconCls="icon-edit" plain="true">修改</a>
    		<a href="javascript:void(0);" id="remove" class="easyui-linkbutton" title="删除" iconCls="icon-remove" plain="true">删除</a>
    	</div>
    </div>
    
    <div id="win" class="easyui-window"
    	 data-options="modal:true,
    	 				closed:true,
    	 				maximizable:false,
    	 				minimizable:false,
    	 				collapsible:false,
    	 				iconCls:'icon-eidt',
    	 				draggable:true">
    	 <iframe id="contentFrame" src="" width=100% height=99% marginwidth=0 framespacing=0 marginheight=0 frameborder=no scrolling=no></iframe>
    </div>
  </body>
</html>
